package com.ctosb.classviewer.clazz.attr;

import com.ctosb.classviewer.ClassReader;
import com.ctosb.classviewer.clazz.AbstractParse;
import com.ctosb.classviewer.clazz.Parseable;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 *
 */
@Data
@Accessors(chain = true)
public class Element_value extends AbstractParse {

    private byte tag;
    private Value value;

    @Override
    public Element_value parse(ClassReader classReader) {
        tag = classReader.readByte();
        value = new Value().parse(classReader, getClassFile());
        return this;
    }
}